<%--
  Created by IntelliJ IDEA.
  User: 20869
  Date: 2023/6/28
  Time: 10:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>list</title>
    <style>
    body a{
    position: relative;
    text-decoration: none;
    }
    body td{
    border-radius: 5px;
    }
    #a{
    background-color:rgb(0, 128, 192);
    text-align:center;

    }
    #b{
    background-color:#ff9999;
    text-align:center;
    }
    </style>

</head>
<body>
<h1 align="center">我的收货地址</h1>
<table width="100%" border="1" cellspacing="5" cellpadding="20">
    <tr>
        <th>ID</th>
        <th>收货人</th>
        <th>联系电话</th>
        <th>具体地址</th>
        <th>详细地址</th>
        <th>类型</th>
        <th>编辑</th>
        <th>删除</th>
    </tr>
    <c:forEach items="${models}" var="item">
        <tr>
            <td>${item.id}</td>
            <td>${item.name}</td>
            <td>${item.phone}</td>
            <td>${item.area}</td>
            <td>${item.area1}</td>
            <td>${item.types}</td>
            <td id="a"><a href="selectOne?id=${item.id}" >编辑</a></td>
            <td id="b"><a href="delete?id=${item.id}" >删除</a></td>
        </tr>
        <tr></tr>
    </c:forEach>

</table>
</body>
</html>
